package com.kgc.pageItem.entity;

import com.kgc.entity.TbItem;

public class Item extends TbItem {
    public Item(TbItem tbItem){
        this.setUpdated(tbItem.getUpdated());
        this.setCreated(tbItem.getCreated());
        this.setStatus(tbItem.getStatus());
        this.setSellPoint(tbItem.getSellPoint());
        this.setNum(tbItem.getNum());
        this.setTitle(tbItem.getTitle());
        this.setImage(tbItem.getImage());
        this.setPrice(tbItem.getPrice());
        this.setCid(tbItem.getCid());
        this.setBarcode(tbItem.getBarcode());
        this.setId(tbItem.getId());
    }
    public String[] getImages() {
        return this.getImage().split(",");

    }
}
